package com.hp.service.impl;

import com.hp.entity.MedicalRecord;
import com.hp.mapper.MedicalRecordMapper;
import com.hp.service.MedicalRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MedicalRecordServiceImpl implements MedicalRecordService {
    @Resource
    private MedicalRecordMapper medicalRecordMapper;
    @Override
    public int update(MedicalRecord medicalRecord) {
        return medicalRecordMapper.update(medicalRecord);
    }

    @Override
    public int add(MedicalRecord medicalRecord) {
        return medicalRecordMapper.add(medicalRecord);
    }

    @Override
    public int delete(String[] id) {
        return medicalRecordMapper.delete(id);
    }

    @Override
    public MedicalRecord findById(MedicalRecord medicalRecord) {
        return medicalRecordMapper.findById(medicalRecord);
    }

    @Override
    public List<MedicalRecord> findAll(MedicalRecord medicalRecord) {
        return medicalRecordMapper.findAll(medicalRecord);
    }
}
